package com.huatai.bi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 参数表
 */
@Data
@TableName(value ="tb_data_set_parameter")
@ApiModel(value = "数据集参数表")
public class DataSetParameterEntity implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * 参数id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "ID",hidden = true)
	@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
	private Long id;

	/**
	 * 数据集id
	 */
	@TableField("dds_id")
	@ApiModelProperty(value = "数据集id",hidden = true)
	private Long ddsId;

	/**
	 * 参数名称
	 */
	@TableField("name")
	@ApiModelProperty(value = "参数名称")
	private String name;

	/**
	 * 参数类型(见参数表：data_type)
	 */
	@ApiModelProperty(value = "参数类型(见参数表：data_type)")
	private String type;

	/**
	 * 参数默认值
	 */
	@ApiModelProperty(value = "参数默认值")
	@TableField("default_value")
	private String defaultValue;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间",hidden = true)
	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
	private Date createTime;

	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间",hidden = true)
	@TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
	private Date updateTime;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人",hidden = true)
	@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
	@TableField("create_by")
	private String createBy;

	/**
	 * 更新人
	 */
	@ApiModelProperty(value = "更新人",hidden = true)
	@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
	@TableField("update_by")
	private String updateBy;
}
